﻿using Sanelib.Dto.ApiRequests;

namespace Dto.ApiRequests.MemberForms
{
    public class MemberCardRegisterForm : FormBase
    {
        public string Code { get; set; }

        public string TagId { get; set; }

        public override string GetCommandValue()
        {
            return string.Format("{0}-{1} [{2}]", base.ToString(), TagId, Code);
        }

        public override string GetApiAddress()
        {
            return string.Format("/member/registercard?code={0}&amp;tagid={1}", Code, TagId);
        }
    }
}